Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: Multi Key for Dblookup
~Umberto Nongeroson 6.Nov.03 02:23 PM a Web browser
Domino Designer 6.0.1 Windows 2003


You have several problems here.

returnList := "";
keyList := field_1:field_2;
@For(i:=0;i<=@Count(keyList);i:=i+1;
returnList:=returnList := @dblookup("":"NoCache";"":"";"Firmalar";key;3; [FailSilent] : [ReturnDocumentuniqueID])) ;
returnList:=@Trim(returnList);

The reason your return value is 1, is that the statement that supplies the formula result is the @For statement, which apparently returns a number value. You might do better to remove the "returnList:=" from the last statement.

I see a strange statement inside the @For that uses := twice. I assume the second one was meant to be a :.
You're doing the same lookup each time thru the loop. You have a loop index i, but you don't use it for anything. Perhaps you meant to use keyList[i] instead of key.
You need to do something to handle a failure of @DbLookup, e.g. using @IfError.




Multi Key for Dblookup (~Yentl Kifreete... 6.Nov.03)
. . RE: Multi Key for Dblookup (~Bill Frokimari... 6.Nov.03)
. . . . RE: Multi Key for Dblookup (~Yentl Kifreete... 6.Nov.03)
. . . . . . RE: Multi Key for Dblookup (~Bill Frokimari... 6.Nov.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS